-- GENERATED SPELL FOR [High Priestess Tua-Tua] --


function spell0_28754(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(13860,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28754', 1500, 1)
end

function spell1_28754(pUnit, Event) --@Shadow Word: Death,n/a--
pUnit:FullCastSpellOnTarget(51818,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28754', 533, 1)
end

function spell2_28754(pUnit, Event) --@Shadowform,Self--
pUnit:FullCastSpellOnTarget(29406,pUnit)
pUnit:RegisterEvent('Sorts_28754', 609, 1)
end

function Sorts_28754(pUnit, Event)
local choix_sorts_28754 = math.random(0, 2)
if choix_sorts_28754 == 0 then
pUnit:RegisterEvent('spell0_28754', 1, 1)
end
if choix_sorts_28754 == 1 then
pUnit:RegisterEvent('spell1_28754', 1, 1)
end
if choix_sorts_28754 == 2 then
pUnit:RegisterEvent('spell2_28754', 1, 1)
end
end

function mob28754_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28754', math.random(1500, 3000), 1)
end

function mob28754_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28754_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28754_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28754, 1, 'mob28754_Action')
RegisterUnitEvent(28754, 2, 'mob28754_Leave')
RegisterUnitEvent(28754, 3, 'mob28754_Kill')
RegisterUnitEvent(28754, 4, 'mob28754_Die')
